define([],
  function () {
    let _Vue = null
    function install (Vue) {
      // 防止重复注册
      if (install.installed && _Vue === Vue) return
      install.installed = true
      _Vue = Vue
      _Vue.mixin({
        methods: {
          expandHandler() {
            var e = $(".expand-shrink-btn");
            e.find("i").toggleClass("icon-expand1").toggleClass("icon-compress"), e.closest("#side-page-ctt").toggleClass("expand-shrink")
          },
          closeForm() {
            $.form.closeSidepage()
          },
        },
      })
    }
    return {
      install
    }
  })